<?php

namespace ORM\Dynasties2;

use Doctrine\ORM\Mapping as ORM;

/**
 * ORM\Dynasties2\Regionimprovements
 */
class Regionimprovements
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var smallint $barracks
     */
    private $barracks;

    /**
     * @var smallint $castle
     */
    private $castle;

    /**
     * @var smallint $roads
     */
    private $roads;

    /**
     * @var smallint $taxCollector
     */
    private $taxCollector;

    /**
     * @var ORM\Dynasties2\Regions
     */
    private $regionLink;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set barracks
     *
     * @param smallint $barracks
     * @return Regionimprovements
     */
    public function setBarracks($barracks)
    {
        $this->barracks = $barracks;
        return $this;
    }

    /**
     * Get barracks
     *
     * @return smallint 
     */
    public function getBarracks()
    {
        return $this->barracks;
    }

    /**
     * Set castle
     *
     * @param smallint $castle
     * @return Regionimprovements
     */
    public function setCastle($castle)
    {
        $this->castle = $castle;
        return $this;
    }

    /**
     * Get castle
     *
     * @return smallint 
     */
    public function getCastle()
    {
        return $this->castle;
    }

    /**
     * Set roads
     *
     * @param smallint $roads
     * @return Regionimprovements
     */
    public function setRoads($roads)
    {
        $this->roads = $roads;
        return $this;
    }

    /**
     * Get roads
     *
     * @return smallint 
     */
    public function getRoads()
    {
        return $this->roads;
    }

    /**
     * Set taxCollector
     *
     * @param smallint $taxCollector
     * @return Regionimprovements
     */
    public function setTaxCollector($taxCollector)
    {
        $this->taxCollector = $taxCollector;
        return $this;
    }

    /**
     * Get taxCollector
     *
     * @return smallint 
     */
    public function getTaxCollector()
    {
        return $this->taxCollector;
    }

    /**
     * Set regionLink
     *
     * @param ORM\Dynasties2\Regions $regionLink
     * @return Regionimprovements
     */
    public function setRegionLink(\ORM\Dynasties2\Regions $regionLink = null)
    {
        $this->regionLink = $regionLink;
        return $this;
    }

    /**
     * Get regionLink
     *
     * @return ORM\Dynasties2\Regions 
     */
    public function getRegionLink()
    {
        return $this->regionLink;
    }
}